﻿@model IEnumerable<Woobao.VO.VOStatus>

@{
    ViewBag.Title = "Lista de Status";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Lista de Status</h2>

<p>
    @Html.ActionLink("Novo", "Create")
</p>
<table>
    <tr>
        <th>
            Codigo
        </th>
        <th>
            Descricao
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Codigo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Codigo }) |
            @Html.ActionLink("Details", "Details", new { id=item.Codigo }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Codigo })
        </td>
    </tr>
}

</table>
@Html.ActionLink("Voltar para a Página inicial", "Index", "Home")

